package com.yuan.pay_mall.dao;

import com.yuan.pay_mall.pojo.User;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);


    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
    //注册
    /*登录时验证邮箱密码在数据库中有没有*/
    int countByUsername(String username);
    int countByEmail(String email);
    //登录
    User selectByUsername(String username);
}